<?php
include_once 'conn.php';
$sql = "select count(1) numbers from maintopic";
$result = mysqli_query($conn,$sql);
$info = mysqli_fetch_array($result);
echo json_encode($info);